package com.learn.designPatterns.structuralType.Decorator;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-10-30 11:37
 */
public class Milk extends CondimentDecorator{

    public Milk(Beverage beverage) {
        super(beverage);
    }

    @Override
    public double cost() {
        return 1 + beverage.cost();
    }
}
